<?php
/**
 * 营业厅信息模块控制器
 * 
 */
class storeAction extends apiAction {
	
	/**
	 * 设置营业厅坐标
	 */
	public function setPosition(){
		$position = I('position');
		$storeId  = I('storeId');
		
		if(! $storeId){
			$this->ajaxReturn(300, L('store_is_error'));
		}elseif( D('store')->where(array('id'=>$storeId))->save(array('gps'=>$position)) ){
			$this->ajaxReturn(200, L('success'));
		}else{
			$this->ajaxReturn(300, L('error'));
		}
	}

}

/* End of file storeAction.class.php */